//
//  HMProduct.m
//  01-网易彩票
//
//  Created by SZSYKT_iOSBasic_2 on 16/2/22.
//  Copyright © 2016年 heima. All rights reserved.
//

#import "HMProduct.h"

@implementation HMProduct
+ (instancetype)productWithDict:(NSDictionary *)dict {
    HMProduct *product = [[self alloc] init];
    
    [product setValuesForKeysWithDictionary:dict];
//    product.title  = dict[@"title"];
    product.icon = [product.icon stringByReplacingOccurrencesOfString:@"@2x" withString:@""];
    return product;
}
@end
